import 'package:flutter_chat/common/store/stores.dart';
import 'package:flutter_chat/common/utils/utils.dart';
import 'package:flutter_chat/common/widget/widgets.dart';

import 'state.dart';

class UserLogic extends CustomGetxController {
  final UserState state = UserState();
  final UserStore userStore = UserStore.to;

  /// 获取昵称
  String getNickname() {
    return StringUtil.isEmpty(userStore.user.nickname)
        ? "未设置昵称"
        : "${userStore.user.nickname}";
  }
}
